// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 添加到黑名单中 POST /api/black-white-list/blacklist */
export async function postApiBlackWhiteListBlacklist(
  body: API.BlacklistInputDto[],
  options?: { [key: string]: any },
) {
  return request<any>('/api/black-white-list/blacklist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 移除黑名单 DELETE /api/black-white-list/blacklist */
export async function deleteApiBlackWhiteListBlacklist(
  body: string[],
  options?: { [key: string]: any },
) {
  return request<any>('/api/black-white-list/blacklist', {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
